package com.ender.springboot.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitReceiver {

    @RabbitListener(queues = "hello")
    public void processHello(String message) {
        System.out.println("hello Receiver:" + message);
    }

    @RabbitListener(queues = "log")
    public void processLog(String message) {
        System.out.println("log Receiver:" + message);
    }


    @RabbitListener(queues = "push.pushmovie")
    public void processMovie(String message) {
        System.out.println("pushmovie Receiver:" + message);
    }

    @RabbitListener(queues = "push.pushseries")
    public void processPushAll(String message) {
        System.out.println("pushseries Receiver:" + message);
    }

}

